package com.llxy.worker.domain;


import com.llxy.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;


public class SupportWorker extends BaseEntity implements Serializable {
    /**
    * 主键
    */

    private Integer id;

    /**
    * 护工名称
    */

    private String name;

    /**
    * 护工年龄
    */
    private Integer age;

    /**
    * 学历id
    */
    private Integer educationId;

    /**
    * 体重
    */
    private Double weight;

    /**
    * 身高
    */
    private Double height;

    /**
    * 籍贯
    */
    private String address;

    /**
    * 特长
    */
    private String speciality;

    /**
    * 照片
    */
    private String avatar;

    /**
    * 培训id
    */
    private Integer trainId;

    /**
    * 家政id
    */
    private Integer homemakingId;

    /**
    * 删除标记
    */
    private String delFlag;

    /**
    * 用户性别（0男 1女 2未知）
    */
    private String sex;

    /**
    * 护士类型
    */
    private Integer type;

    /**
     * 是否是推荐护工
     */
    private String isRecommend;

    /**
     * 是否是优秀护工
     */
    private String isOutstanding;

    private Long userId;

    private Integer status;

    private Long schoolUserId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @NotBlank(message = "护工名称不能为空")
    @Size(min = 0, max = 6, message = "护工名称长度不能超过6个字符")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getEducationId() {
        return educationId;
    }

    public void setEducationId(Integer educationId) {
        this.educationId = educationId;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Double getHeight() {
        return height;
    }

    public void setHeight(Double height) {
        this.height = height;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getSpeciality() {
        return speciality;
    }

    public void setSpeciality(String speciality) {
        this.speciality = speciality == null ? null : speciality.trim();
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar == null ? null : avatar.trim();
    }

    public Integer getTrainId() {
        return trainId;
    }

    public void setTrainId(Integer trainId) {
        this.trainId = trainId;
    }

    public Integer getHomemakingId() {
        return homemakingId;
    }

    public void setHomemakingId(Integer homemakingId) {
        this.homemakingId = homemakingId;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag == null ? null : delFlag.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getIsRecommend() {
        return isRecommend;
    }

    public void setIsRecommend(String isRecommend) {
        this.isRecommend = isRecommend;
    }

    public String getIsOutstanding() {
        return isOutstanding;
    }

    public void setIsOutstanding(String isOutstanding) {
        this.isOutstanding = isOutstanding;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", age=").append(age);
        sb.append(", educationId=").append(educationId);
        sb.append(", weight=").append(weight);
        sb.append(", height=").append(height);
        sb.append(", address=").append(address);
        sb.append(", speciality=").append(speciality);
        sb.append(", avatar=").append(avatar);
        sb.append(", trainId=").append(trainId);
        sb.append(", homemakingId=").append(homemakingId);
        sb.append(", delFlag=").append(delFlag);
        sb.append(", createBy=").append(getCreateBy());
        sb.append(", createTime=").append(getCreateTime());
        sb.append(", updateBy=").append(getUpdateBy());
        sb.append(", updateTime=").append(getUpdateTime());
        sb.append(", sex=").append(sex);
        sb.append(", type=").append(type);
        sb.append(", isRecommend=").append(isRecommend);
        sb.append(", isOutstanding=").append(isOutstanding);
        sb.append("]");
        return sb.toString();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getSchoolUserId() {
        return schoolUserId;
    }

    public void setSchoolUserId(Long schoolUserId) {
        this.schoolUserId = schoolUserId;
    }
}